package com.rwx.reflect.model;

public class Student {
    private String name;
    private String age;
    public String gender;
    public String address;
    public Integer score;

    public Student() {
    }

    public Student(String name, String age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public Student(String name, String age, String gender, Integer score) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.score = score;
    }

    public Student(String name) {
        this.name = name;
    }

    private Student(String name, String age) {
        this.name = name;
        this.age = age;
    }

    public void getInfo(){
        System.out.println(this.name+"~~"+this.age+"~~"+this.gender);
    }
    public void getStuInfo(String tall){
        System.out.println(this.name+"~~"+this.age+"~~"+this.gender+"~~"+tall);
    }

    private String showStu(){
        return this.name+"~~"+this.age+"~~"+this.score;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", gender='" + gender + '\'' +
                ", score=" + score +
                '}';
    }


}
